/**
 * Copyright (c) 2010 icer He <icerhe@gmail.com>
 */
package com.icerhe.trigger;


import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;


/**
 * 初始化Reciever
 * 
 * @author icer
 *
 */
public class InitReceiver extends BroadcastReceiver  {
	/* (non-Javadoc)
	 * @see android.content.BroadcastReceiver#onReceive(android.content.Context, android.content.Intent)
	 */
	@Override
	public void onReceive(Context context, Intent intent)  {
		
		String action = intent.getAction();
		Log.d(Consts.TAG, "InitReceiver receive: "+action);

		if (action.equals(Intent.ACTION_BOOT_COMPLETED)) {
			//启动服务
		    //context.startService(new Intent(context, TaskService.class));	
		}
		
		TaskHelper.setNextTask(context);
	}

}
